package com.kun.peng.logging.mapper;

import com.kun.peng.logging.domain.Log;
import com.kun.peng.mybatis.base.MyBaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created on 2021/12/15.
 *
 * @author xuebaopeng
 * Description
 */
@Mapper
public interface LogMapper extends MyBaseMapper<Log> {

    /**
     * 根据日志类型删除信息
     * @param logType 日志类型
     */
    @Delete(value = "delete from sys_log where log_type = ${logType}")
    void deleteByLogType(@Param("logType") String logType);
}
